<?php
namespace bee;

class link extends widget
{
  /**
   *
   * @var eventDetails
   */
  public $onClickFn;

  function __construct($name, $text)
  { parent::__construct($name);
    $this->value = $text;
  }

  /**
   *
   * @param array $evt
   */
  public function onDraw($evt)
  { $this->fillDSDoc();
  }

  /**
   *
   * @param sting $fillVar
   */
  public function fillDSDoc($fillVar = "")
  {
    $__DSDoc = XMLDataHub::getInstance();
    if($fillVar)
    { $this->__DSDoc->setVariable($fillVar, $this->value);
    }
    $this->__DSDoc->setObject("widgets/" . $this->name, $this);
  }


}